﻿/**************************************************************
*作者：Leon
*创建时间：2022/1/25 18:27:57
**************************************************************/
using System.Security.Cryptography;
using System.Text;

namespace MyBlog.WebAPI;

public static class MD5Helper
{
    public static string MD5Encrypt32(string password)
    {
        MD5 md5 = MD5.Create();
        byte[] s=md5.ComputeHash(Encoding.UTF8.GetBytes(password));
        string pwd = string.Empty;
        foreach (var item in s)
            pwd += item.ToString("X");
        return pwd;
    }
         
}
